<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入Vue -->
    <script type="text/javascript" src="../js/vue.js"></script>
</head>

<body>

    <div id="asd">
        <h1>你好,初始vue</h1>
        <h2>姓名：{{name}}</h2>
        <h2>年龄：{{age}}</h2>
    </div>

    <script>
        new Vue({
            el: '#asd',
            data: {
                name: '张三',
                age: 20


            }
        })

    </script>
</body>

</html>